package
{
	import components.IBlocker;
	import components.border.BorderComponent;
	
	import core.Field;
	import core.GameClass;
	
	import flash.display.Sprite;
	import flash.display.StageScaleMode;
	
	import view.FieldView;
	
	[SWF(width="1200", height="800", backgroundColor="0x325556")]
	public class Feodals extends Sprite
	{
		public function Feodals()
		{
			stage.scaleMode = StageScaleMode.EXACT_FIT;
			
			var field:Field = new Field(30, 20);
			var borderClass:GameClass = new GameClass(BorderComponent);
			field.border.groundObject = borderClass.newObject();
			
			var fieldView:FieldView = new FieldView();
			addChild(fieldView);
			fieldView.squaresX = field.sizeX;
			fieldView.squaresY = field.sizeY;
			
			fieldView.width = 1200;
			fieldView.height = 800;
		}
	}
}
